<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.meichaoit.entity.Account"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>ATM WEB</title>
  </head>
  
  <body>
    <h2>ATM WEB 用户转账</h2>
    
    <form action="l_train.jsp" method="post">
    	转入的账户:<select name="userid">
    						
    					<option>--请选择--</option>
    					<%
    						
    						Account me = (Account)session.getAttribute("account");
    						List<Account> list = (List<Account>)request.getAttribute("accountlist");
    						for(Account a: list){
    						if(me.getId()!=a.getId()){
    					%>
    					<option value="<%=a.getId()%>"><%=a.getUsername()%></option>
    					<%}} %>
    			</select><br/>
    			
    			金额：<input type="text" name="money"/><br/>
    				<input type="submit" value="保存"/>
    </form>
  </body>
</html>
